
package com.zsrt.day20170505.ch01;


import org.junit.Test;

public class LinkListTest {

	@Test
	public void testName() throws Exception {
		Node head = new Node();
		LinkList link = new LinkList(head);
		Node node1 = new Node(2);
		link.addNode(node1);
		System.out.println(link);
		
		Node node2 = new Node(4);
		link.addNode(node2);
		System.out.println(link);
		
		Node node3 = new Node(5);
		link.addNode(node3);
		
		Node node4 = new Node(3);
		link.insertNode(node4, node1);
		
		link.search(link);
		link.deleteNode(node3);
		link.search(link);
		
		int i = 9;
		link.updateNode(node2, i );
		link.search(link);
	}
	
	
}
